package com.jason.canvas;

import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.PointF;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.Window;
import android.widget.ImageView;

import com.jason.canvas.view.PolylineView;

import java.util.ArrayList;
import java.util.List;

public class MainActivity extends AppCompatActivity {

    private static final String TAG = MainActivity.class.getSimpleName();
    private ImageView mImageView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_main);
        //setContentView(R.layout.activity_image);
        getSupportActionBar().hide();


       /* mImageView = (ImageView) findViewById(R.id.iv);

        Bitmap bitmap = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888);
        Canvas canvas = new Canvas(bitmap);
        canvas.drawColor(Color.RED);

        mImageView.setImageBitmap(bitmap);
*/

        /*PolylineView polylineView = (PolylineView) findViewById(R.id.polylineview);
        List<PointF> pointFs = new ArrayList<>();
        pointFs.add(new PointF(0.3f, 0.5f));
        pointFs.add(new PointF(1f, 2.7f));
        pointFs.add(new PointF(2f, 3.5f));

        pointFs.add(new PointF(3f, 3.2f));
        pointFs.add(new PointF(4f, 1.8f));
        pointFs.add(new PointF(5f, 1.5f));

        pointFs.add(new PointF(6f, 2.2f));
        pointFs.add(new PointF(7f, 5.5f));
        pointFs.add(new PointF(8f, 7f));
        pointFs.add(new PointF(8.6f, 5.7f));

        polylineView.setData(pointFs, "money", "time");*/





    }
}
